﻿using System;
using Shell.Build.Lifetime;

namespace Shell
{
    public class TypeRegisterEventArgs : NamedEventArgs
    {
        public TypeRegisterEventArgs(string name, Type from, Type to, ILifetimePolicy lifetimePolicy)
            : base(name)
        {
            this.From = from;
            this.To = to;
            this.Lifetime = lifetimePolicy;
        }

        public Type From { get; private set; }

        public Type To { get; private set; }

        public ILifetimePolicy Lifetime { get; private set; }
    }
}
